home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMSVGFitToViewBox.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  106 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMSVGFitToViewBox.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMSVGFitToViewBox_h__
  6. #define __gen_nsIDOMSVGFitToViewBox_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDOMSVGAnimatedRect; /* forward declaration */
  18.  
  19. class nsIDOMSVGAnimatedPreserveAspectRatio; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsIDOMSVGFitToViewBox */
  23. #define NS_IDOMSVGFITTOVIEWBOX_IID_STR "089410f3-9777-44f1-a882-ab4225696434"
  24.  
  25. #define NS_IDOMSVGFITTOVIEWBOX_IID \
  26.   {0x089410f3, 0x9777, 0x44f1, \
  27.     { 0xa8, 0x82, 0xab, 0x42, 0x25, 0x69, 0x64, 0x34 }}
  28.  
  29. class NS_NO_VTABLE nsIDOMSVGFitToViewBox : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMSVGFITTOVIEWBOX_IID)
  33.  
  34.   /* readonly attribute nsIDOMSVGAnimatedRect viewBox; */
  35.   NS_IMETHOD GetViewBox(nsIDOMSVGAnimatedRect * *aViewBox) = 0;
  36.  
  37.   /* readonly attribute nsIDOMSVGAnimatedPreserveAspectRatio preserveAspectRatio; */
  38.   NS_IMETHOD GetPreserveAspectRatio(nsIDOMSVGAnimatedPreserveAspectRatio * *aPreserveAspectRatio) = 0;
  39.  
  40. };
  41.  
  42. /* Use this macro when declaring classes that implement this interface. */
  43. #define NS_DECL_NSIDOMSVGFITTOVIEWBOX \
  44.   NS_IMETHOD GetViewBox(nsIDOMSVGAnimatedRect * *aViewBox); \
  45.   NS_IMETHOD GetPreserveAspectRatio(nsIDOMSVGAnimatedPreserveAspectRatio * *aPreserveAspectRatio); 
  46.  
  47. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  48. #define NS_FORWARD_NSIDOMSVGFITTOVIEWBOX(_to) \
  49.   NS_IMETHOD GetViewBox(nsIDOMSVGAnimatedRect * *aViewBox) { return _to GetViewBox(aViewBox); } \
  50.   NS_IMETHOD GetPreserveAspectRatio(nsIDOMSVGAnimatedPreserveAspectRatio * *aPreserveAspectRatio) { return _to GetPreserveAspectRatio(aPreserveAspectRatio); } 
  51.  
  52. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  53. #define NS_FORWARD_SAFE_NSIDOMSVGFITTOVIEWBOX(_to) \
  54.   NS_IMETHOD GetViewBox(nsIDOMSVGAnimatedRect * *aViewBox) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetViewBox(aViewBox); } \
  55.   NS_IMETHOD GetPreserveAspectRatio(nsIDOMSVGAnimatedPreserveAspectRatio * *aPreserveAspectRatio) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreserveAspectRatio(aPreserveAspectRatio); } 
  56.  
  57. #if 0
  58. /* Use the code below as a template for the implementation class for this interface. */
  59.  
  60. /* Header file */
  61. class nsDOMSVGFitToViewBox : public nsIDOMSVGFitToViewBox
  62. {
  63. public:
  64.   NS_DECL_ISUPPORTS
  65.   NS_DECL_NSIDOMSVGFITTOVIEWBOX
  66.  
  67.   nsDOMSVGFitToViewBox();
  68.  
  69. private:
  70.   ~nsDOMSVGFitToViewBox();
  71.  
  72. protected:
  73.   /* additional members */
  74. };
  75.  
  76. /* Implementation file */
  77. NS_IMPL_ISUPPORTS1(nsDOMSVGFitToViewBox, nsIDOMSVGFitToViewBox)
  78.  
  79. nsDOMSVGFitToViewBox::nsDOMSVGFitToViewBox()
  80. {
  81.   /* member initializers and constructor code */
  82. }
  83.  
  84. nsDOMSVGFitToViewBox::~nsDOMSVGFitToViewBox()
  85. {
  86.   /* destructor code */
  87. }
  88.  
  89. /* readonly attribute nsIDOMSVGAnimatedRect viewBox; */
  90. NS_IMETHODIMP nsDOMSVGFitToViewBox::GetViewBox(nsIDOMSVGAnimatedRect * *aViewBox)
  91. {
  92.     return NS_ERROR_NOT_IMPLEMENTED;
  93. }
  94.  
  95. /* readonly attribute nsIDOMSVGAnimatedPreserveAspectRatio preserveAspectRatio; */
  96. NS_IMETHODIMP nsDOMSVGFitToViewBox::GetPreserveAspectRatio(nsIDOMSVGAnimatedPreserveAspectRatio * *aPreserveAspectRatio)
  97. {
  98.     return NS_ERROR_NOT_IMPLEMENTED;
  99. }
  100.  
  101. /* End of implementation class template. */
  102. #endif
  103.  
  104.  
  105. #endif /* __gen_nsIDOMSVGFitToViewBox_h__ */
  106.